package cn.kinoko.config.mybatis;

import cn.kinoko.common.utils.IdHelper;
import com.baomidou.mybatisplus.core.incrementer.IdentifierGenerator;

/**
 * 自定义雪花算法生成器
 * @author kinoko
 */
public class SnowflakeIdGenerator implements IdentifierGenerator {

    @Override
    public Number nextId(Object entity) {
        return IdHelper.nextId();
    }
}
